Constant Actual Parameter Value ^^^^^ **Definition:** * The value of an actual parameter is the same for all occurances. In contrast to Unused Parameter (4.3.1), the parameter is in use within the declaring entity and must not simply be removed. The declaring entity could be a template or a behavioral entity (function, test case or altstep). **Code Example:** .. code-block:: template myType t (charstring p1, integer p2) := { field1 := true, field2 := p2, field3 := p1 } function f() runs on myComponent { // ... p.send(templateA("foo", 42)); // ... p.send(templateA("foo", 42)); // ... p.send(templateA("foo", 43)); } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `An approach to quality engineering of TTCN-3 test specifications `_ * `Pattern-based Smell Detection in TTCN-3 Test Suites `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Utilising Code Smells to Detect Quality Problems in TTCN-3 Test Suites `_